package com.mallbook.model.pojo;

import java.math.BigDecimal;
import java.util.List;

/**
 * @Author 宋明松
 * @Version V1.0.0
 * @Date 2022-06-21
 *
 * 订单实体类
 */
public class Orders {
    private Integer id;
    //    private Integer userId; // 外键一般使用实体类
    private User user;
    private String ordersId;
    private String times;
    private String conSingnee;
    private String address;
    private String tel;
    private Integer payMethod;
    private BigDecimal totalMoney;
    private String startTime;
    private String endTime;
    private Integer state;

    private List<OrdersDetails> ordersDetails;

    private String sTime; // 用于按照注册时间范围查找
    private String eTime;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public String getOrdersId() {
        return ordersId;
    }

    public void setOrdersId(String ordersId) {
        this.ordersId = ordersId;
    }

    public String getTimes() {
        return times;
    }

    public void setTimes(String times) {
        this.times = times;
    }

    public String getConSingnee() {
        return conSingnee;
    }

    public void setConSingnee(String conSingnee) {
        this.conSingnee = conSingnee;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public Integer getPayMethod() {
        return payMethod;
    }

    public void setPayMethod(Integer payMethod) {
        this.payMethod = payMethod;
    }

    public BigDecimal getTotalMoney() {
        return totalMoney;
    }

    public void setTotalMoney(BigDecimal totalMoney) {
        this.totalMoney = totalMoney;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public List<OrdersDetails> getOrdersDetails() {
        return ordersDetails;
    }

    public void setOrdersDetails(List<OrdersDetails> ordersDetails) {
        this.ordersDetails = ordersDetails;
    }

    public String getsTime() {
        return sTime;
    }

    public void setsTime(String sTime) {
        this.sTime = sTime;
    }

    public String geteTime() {
        return eTime;
    }

    public void seteTime(String eTime) {
        this.eTime = eTime;
    }

    @Override
    public String toString() {
        return "Orders{" +
                "id=" + id +
                ", user=" + user +
                ", ordersId='" + ordersId + '\'' +
                ", times='" + times + '\'' +
                ", conSingnee='" + conSingnee + '\'' +
                ", address='" + address + '\'' +
                ", tel='" + tel + '\'' +
                ", payMethod=" + payMethod +
                ", totalMoney=" + totalMoney +
                ", startTime='" + startTime + '\'' +
                ", endTime='" + endTime + '\'' +
                ", state=" + state +
                ", ordersDetails=" + ordersDetails +
                '}';
    }
}
